<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>系统首页</title>
</head>
<body>
<h1>你好，<span th:text="${user.nickname}"></span>。欢迎来到后台管理系统！</h1>
<div>
    <a href="./operator?current=1&size=10">用户列表查询</a>
</div>
<script src="./assets/jquery-v3.7.1/jquery.min.js"></script>
<script>
    // $.ajaxSetup({
    //     beforeSend: function (xhr) {
    //         let token = localStorage.getItem('__authorization__');
    //         console.log("token", token)
    //         if (token != null && token != '') {
    //             xhr.setRequestHeader('Authorization', token)
    //         }
    //     }
    // })

    $(function () {
        $.get({
            url: "./operator/list",
            success: function (result) {
                console.log(result);
            }
        })
    })
</script>
</body>
</html>
